package com.css.project.oa.cash.controller;

import com.css.framework.web.controller.BaseController;
import com.css.framework.web.page.TableDataInfo;
import com.css.project.oa.cash.domain.ProCash;
import com.css.project.oa.cash.domain.TestList;
import com.css.project.oa.cash.service.ITestListService;
import io.swagger.annotations.Api;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import java.util.List;

@Api(value = "/testList ",description ="测试list")
@RestController
@RequestMapping(value = "/testList")
public class TestListController extends BaseController {
    Logger log = LoggerFactory.getLogger(CashExpenseController.class);

    @Autowired
    public ITestListService testListService;

    @RequestMapping(value = "/list", method = RequestMethod.GET)
    public TableDataInfo list(@ApiIgnore TestList test){
        startPage();
        List<TestList> list = testListService.getTestList(test);
        return getDataTable(list);
    }
}
